package com.champChooser.panels.chart
{
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	import mx.containers.Panel;
	import mx.controls.Button;
	import mx.core.Application;

	public class ChartPanel extends Panel
	{
		public function ChartPanel()
		{
			super();
			var btn:Button = new Button();
			btn.label="Go Home";
			btn.addEventListener(MouseEvent.CLICK,goHome);
			this.addChild(btn);
		}
		private function goHome(e:Event):void{
			//this.parent.parent.removeChild(this.parent);
			Application.application.reset();
			
		}
		
	}
}